home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / LowLevel / PCommand.h < prev    next >
C/C++ Source or Header  |  1996-09-05  |  1KB  |  44 lines

  1. /*
  2.  *--- PCommand.h ----------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 9:54 PM by Paul Ferguson.
  5.  *
  6.  * Description:
  7.  *-------------------------------------------------------------------------
  8.  */
  9. #ifndef __PCommand__
  10. #define __PCommand__
  11.  
  12. #ifdef __MWERKS__
  13. #pragma once
  14. #endif
  15.  
  16. #include <stdlib.h>
  17.  
  18. #include "PCallback.h"
  19. #include "PMCommands.h"
  20.  
  21. class PRequestBuf;
  22.  
  23. class PCommand : public PCallback
  24. {
  25.  
  26. public:
  27.  
  28.     PCommand(ePMCommand op);                                // command with no params
  29.     PCommand(ePMCommand op, short aShort);                    // command with short param
  30.     PCommand(ePMCommand op, long aLong);                    // command with long param
  31.     PCommand(ePMCommand op, const char * aString);            // command with single string command
  32.     PCommand(ePMCommand op, void * aRawBuf, size_t theLen);    // command with a fully formed request buffer with length
  33.     PCommand(ePMCommand op, PRequestBuf& request);            // command with a request buffer
  34.  
  35. private:
  36.  
  37.     PCommand();
  38.     void DoCommand(ePMCommand op);
  39. };
  40.  
  41. #endif
  42.  
  43. // end of PCommand.h
  44.